package com.qmerak.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qmerak.dao.impl.MemAchievementDao;
import com.qmerak.entity.MemAchievementEntity;
import com.qmerak.entity.MemberEntity;
import com.qmerak.service.IMemAchievementService;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-21
 * @project TUManager
 */
@Service
public class MemAchievementServiceImpl implements IMemAchievementService {
	@Autowired
	private MemAchievementDao memAchievementDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemAchievementService#add(com.entity.MemAchievementEntity)
	 */
	@Override
	public MemAchievementEntity add(MemAchievementEntity entity) {
		return memAchievementDao.add(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemAchievementService#update(com.entity.MemAchievementEntity
	 * )
	 */
	@Override
	public void update(MemAchievementEntity entity) {
		memAchievementDao.update(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemAchievementService#delete(com.entity.MemAchievementEntity
	 * )
	 */
	@Override
	public void delete(MemAchievementEntity entity) {
		memAchievementDao.remove(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemAchievementService#achievementsOfMem(com.entity.MemberEntity
	 * )
	 */
	@Override
	public List<MemAchievementEntity> achievementsOfMem(MemberEntity entity) {
		return memAchievementDao.achievementsOfMem(entity);
	}

}
